{{extend ('./layout.html')}}

{{#block ("body")}}
{{extend ('./menu.html')}}
<div class="main-container">
	<div class="padding-md">
		<h2 class="header-text">
			Form Element
			<span class="sub-header">
							Basic form elements
						</span>
		</h2>
		<div class="smart-widget m-top-lg widget-dark-blue">
			<div class="smart-widget-header">
				编辑账号
				<span class="smart-widget-option">
					<span class="refresh-icon-animated">
						<i class="fa fa-circle-o-notch fa-spin"></i>
					</span>
                    <a href="#" class="widget-toggle-hidden-option">
                        <i class="fa fa-cog"></i>
                    </a>
                    <a href="#" class="widget-collapse-option" data-toggle="collapse">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a href="#" class="widget-refresh-option">
                        <i class="fa fa-refresh"></i>
                    </a>
                    <a href="#" class="widget-remove-option">
                        <i class="fa fa-times"></i>
                    </a>
                </span>
			</div>
			<div class="smart-widget-inner">
				<div class="smart-widget-hidden-section">
					<ul class="widget-color-list clearfix">
						<li style="background-color:#20232b;" data-color="widget-dark"></li>
						<li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
						<li style="background-color:#23b7e5;" data-color="widget-blue"></li>
						<li style="background-color:#2baab1;" data-color="widget-green"></li>
						<li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
						<li style="background-color:#fbc852;" data-color="widget-orange"></li>
						<li style="background-color:#e36159;" data-color="widget-red"></li>
						<li style="background-color:#7266ba;" data-color="widget-purple"></li>
						<li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
						<li style="background-color:#fff;" data-color="reset"></li>
					</ul>
				</div>
				<div class="smart-widget-body">
					<form action="/user/userEdit?user_id={{user.user_id}}" method="post" enctype="multipart/form-data">
						<div class="form-group">
							<label for="user_name">用户名</label>
							<input required type="text" class="form-control" disabled id="user_name" value="{{user.user_name}}" name="user_name" placeholder="请输入用户名">
						</div><!-- /form-group -->
						<div class="form-group">
							<label for="user_pwd">密码 </label>
							<input type="password" class="form-control" name="user_pwd" id="user_pwd">
						</div><!-- /form-group -->
						<div class="form-group">
							<label for="exampleInputEmail1">Email</label>
							<input type="email" class="form-control" id="exampleInputEmail1" value="{{user.user_email}}" name="user_email" placeholder="Enter email">
						</div><!-- /form-group -->

						<div class="form-group">
							<label for="user_address">地址</label>
							<input type="text" class="form-control" id="user_address" value="{{user.user_address}}" placeholder="请输入地址" name="user_address">
						</div><!-- /form-group -->
						<div class="form-group">
							<label for="user_phone">电话号码 </label>
							<input type="text" class="form-control" id="user_phone" value="{{user.user_phone}}" name="user_phone" placeholder="请输入电话号码">
						</div><!-- /form-group -->

						<div class="form-group">
							<label for="radio">性别</label>
							<div class="radio inline-block">
								<div class="custom-radio m-right-xs">
									<input required type="radio" id="user_sex1" name="user_sex" {{user.user_sex?"checked":""}} value="1">
									<label for="user_sex1"></label>
								</div>
								<div class="inline-block vertical-top">男</div>
							</div>
							<div class="radio inline-block">
								<div class="custom-radio m-right-xs">
									<input required type="radio" id="user_sex2" {{user.user_sex?"":"checked"}}  name="user_sex" value="0">
									<label for="user_sex2"></label>
								</div>
								<div class="inline-block vertical-top">女</div>
							</div>
						</div><!-- /form-group -->
						<div class="form-group">
							<label for="user_img">用户头像</label>
							<input type="file" class="form-control" id="user_img" name="user_img" />
						</div><!-- /form-group -->
						<div class="form-group">
							<label for="user_img">预览</label>
							<span style="display:inline-block;width:100px;height:100px;">
								<img class="img img-responsive" src="{{user.user_img}}" alt="">
							</span>
						</div><!-- /form-group -->

						<!-- <div class="form-group">
							<label for="user_img">用户类型</label>
							<select name="type_id" class="form-control" required>
								<option value="">请选择</option>
								{{#each(type_list)}}
								<option {{user.type_id===this.type_id?"selected":""}} value="{{this.type_id}}">{{this.type_name}}</option>
								{{/each}}
							</select>
						</div> -->

						<div class="form-group">
							<div>
								<button type="submit" class="btn btn-success btn-sm">提交</button>
							</div><!-- /.col -->
						</div><!-- /form-group -->
					</form>
				</div>
			</div><!-- ./smart-widget-inner -->
		</div><!-- ./smart-widget -->

	</div><!-- ./padding-md -->
</div><!-- /main-container -->
{{/block}}